.typepractice {
  font-family: "Arial", sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}
.typepractice-title {
  color: #333;
  margin-bottom: 30px;
}

.typepractice-stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.typepractice-stat-box {
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.typepractice-target-char {
  font-size: 80px;
  font-weight: bold;
  margin: 20px 0;
  color: #e74c3c;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.typepractice-keyboard-container {
  margin: 30px auto;
  width: 800px;
}

.typepractice-keyboard-row {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.typepractice-keyboard-key {
  width: 50px;
  height: 50px;
  margin: 0 2px;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.typepractice-keyboard-key:hover {
  background-color: #e0e0e0;
}

.typepractice-keyboard-key.active {
  background-color: #3498db;
  color: white;
  border: 1px solid #2980b9;
}

.typepractice-keyboard-key.wrong {
  background-color: #e74c3c;
  color: white;
  border: 1px solid #c0392b;
}

.typepractice-keyboard-key.span-2 {
  width: 80px;
}

.typepractice-space-key {
  width: 250px;
}

.typepractice-delete-key {
  width: 100px;
}

.typepractice-shift-key {
  width: 100px;
}
.typepractice-enter-key {
  width: 100px;
}

.typepractice-keyboard-key.lower-char {
  font-size: 10px;
}

.typepractice-control-row {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.typepractice button {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 16px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.typepractice button:hover {
  background-color: #2980b9;
}

.typepractice button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.typepractice-instructions {
  text-align: left;
  margin-top: 30px;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 4px solid #3498db;
}

.typepractice-timer {
  font-size: 24px;
  margin: 20px 0;
}
